package cn.fuxue.hrms.common.entity;

/**
 * @author 王文勇
 * @version 1.0
 * 请假记录实体类
 */
public class LeaveRecord {

    // 请假记录唯一标识
    private int id;
    // 关联的请假申请唯一标识，表明是哪条请假申请对应的记录
    private int leaveId;
    // 请假记录备注信息
    private String remarks;

    // 无参构造函数
    public LeaveRecord() {
    }

    // 全参构造函数
    public LeaveRecord(int id, int leaveId, String remarks) {
        this.id = id;
        this.leaveId = leaveId;
        this.remarks = remarks;
    }

    // Getter 和 Setter 方法

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getLeaveId() {
        return leaveId;
    }

    public void setLeaveId(int leaveId) {
        this.leaveId = leaveId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "LeaveRecord{" +
                "id=" + id +
                ", leaveId=" + leaveId +
                ", remarks='" + remarks + '\'' +
                '}';
    }
}
